﻿@model FormulaRunning.Models.Formula

@{
    ViewBag.Title = "Formula Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Formula</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Title)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Title)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Description)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Description)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.FormulaString)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FormulaString)
    </div>
    <div class="display-label">
         @Html.DisplayNameFor(model => model.SubmitTime)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SubmitTime)
    </div>
</fieldset>
<p>
    @if (Model.UserName == User.Identity.Name)
    {
        @Html.ActionLink("Edit", "Edit", new { id=Model.FormulaID }) 
    }
</p>
<div class="tags">
    <div class="display-label">
         @Html.DisplayNameFor(model => model.Tags)
    </div>
    <div class="display-field">
        @foreach (var tag in Model.Tags)
        { 
            @tag.TagName
            <br />
        }
    </div>
</div>
<div class="comments">

</div>